package edu.wpi.first.wpilibj.templates;

import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.Button;
import edu.wpi.first.wpilibj.buttons.JoystickButton;


/**
 * <p>The operator interface class ties the commands that have been implemented
 * to the physical controls of the user. This allows you to bind the same
 * command that executes autonomous to a button. It also reveal the joystick as
 * used by the DriveWithJoysticks command.</p>
 * 
 * @author Alex Henning
 */
public class OI {
    // Create the joystick 
    Joystick leftJoy = new Joystick(1);

    
    /**
     * Bind the press of each button to a specific command or command group.
     */
    public OI() {
     
    }
    
   
    /**
     * @return The value of the left joystick.
     */
    public double getForwardBack() {
        return leftJoy.getY();
    }
    
    /**
     *
     */
    public double getLeftRight() {
        return leftJoy.getX();
    }
}

